package com.fujica.db_operation.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName 学生类
 * @Description TODO
 * @Author cjm
 * @Date 2020/6/18 15:08
 * @Version 1.0
 **/

@Data
@Table
public class Student {
    @Id
    private Integer id;

    @Column(name = "sno")
    private Long sno;

    @Column(name = "sname")
    private String sname;

    @Column(name = "gender")
    private Integer gender;

    @Column(name = "age")
    private Integer age;

    @Column(name = "class_id")
    private Integer classId;
}
